#include"client.hpp"
#include<cstdlib>
void Use()
{
    std::cout<<"please write: ./client [ip] [port]"<<std::endl;
}
int main(int argc,char* argv[])
{
    if(argc!= 3)
    {
        Use();
        exit(0);
    }

    uint16_t port = std::stoi(argv[2]);
    std::string ip = argv[1];
    Client client(ip,port);
    client.Init();
    client.Run();
    return 0;


}